package pojo;

import java.util.Objects;

public class TbBankcard {
    private Integer bankcardId;
    private String bankcardNum;
    private String bankcardHome;
    private String bankcardName;
    private Integer userIdBankcard;
    private TbUser tbUserByUserIdBankcard;

    public Integer getBankcardId() {
        return bankcardId;
    }

    public void setBankcardId(Integer bankcardId) {
        this.bankcardId = bankcardId;
    }

    public String getBankcardNum() {
        return bankcardNum;
    }

    public void setBankcardNum(String bankcardNum) {
        this.bankcardNum = bankcardNum;
    }

    public String getBankcardHome() {
        return bankcardHome;
    }

    public void setBankcardHome(String bankcardHome) {
        this.bankcardHome = bankcardHome;
    }

    public String getBankcardName() {
        return bankcardName;
    }

    public void setBankcardName(String bankcardName) {
        this.bankcardName = bankcardName;
    }

    public Integer getUserIdBankcard() {
        return userIdBankcard;
    }

    public void setUserIdBankcard(Integer userIdBankcard) {
        this.userIdBankcard = userIdBankcard;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TbBankcard that = (TbBankcard) o;
        return Objects.equals(bankcardId, that.bankcardId) &&
                Objects.equals(bankcardNum, that.bankcardNum) &&
                Objects.equals(bankcardHome, that.bankcardHome) &&
                Objects.equals(bankcardName, that.bankcardName) &&
                Objects.equals(userIdBankcard, that.userIdBankcard);
    }

    @Override
    public int hashCode() {
        return Objects.hash(bankcardId, bankcardNum, bankcardHome, bankcardName, userIdBankcard);
    }

    public TbUser getTbUserByUserIdBankcard() {
        return tbUserByUserIdBankcard;
    }

    public void setTbUserByUserIdBankcard(TbUser tbUserByUserIdBankcard) {
        this.tbUserByUserIdBankcard = tbUserByUserIdBankcard;
    }
}
